﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript" src="../../../js/jquery.min.js"></script>
    <script type="text/javascript">

    </script>
    
    <script type="text/javascript">
        function aa() {
            var reg = /^15[0-9]{1}\d{8}|13\d{9}|18[689]{1}\d{8}$/;
            var reg2 = /^(13[0-9]|15[0-9]|)[0-9]{8}$/;
            var reg3 = /^15[0-9]{1}\d{8}|13\d{9}|18[6789]{1}\d{8}$/;
            if(reg3.test($('#text1').val()))
            {
                document.write('ok');
            }
            else{
                document.write('no');
            }
        }
    </script>
</head>
<body>
    <input type="text" id="text1" />
    <input type="button" value="test" id="testReg" onclick="aa()"/>
</body>
</html>
